package com.wfbi.security.chapter27;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wfbi
 * @version 1.0
 * @date 2021/12/27 1:31 PM
 */
@RestController
public class HelloController {
    @GetMapping("/foo/hello")
    public String hello() {
        System.out.println("\"hello\" = " + "foo hello");
        return "foo hello";
    }
    @GetMapping("/bar/hello")
    public String barHello() {
        System.out.println("\"hello\" = " + "bar hello");
        return "bar hello";
    }
}
